Method and device for managing priority during the transmission of a message

ABSTRACT

Method of managing priority during the transmission of a message, in an interconnections network comprising at least one transmission agent which comprises at least one input and at least one output, each input comprising a means of storage organized as a queue of messages. A message priority is assigned during the creation of the message, and a queue priority equal to the maximum of the priorities of the messages of the queue is assigned to at least one queue of messages of an input. A link priority is assigned to a link linking an output of a first transmission agent to an input of a second transmission agent, equal to the maximum of the priorities of the queues of messages of the inputs of said first agent comprising a first message destined for that output of said first agent which is coupled to said link, and the priority of the link is transmitted to that input of said second agent which is coupled to the link.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of, and claims priority to, pending U.S. application Ser. No. 10/915,950, entitled “Method and Device for Managing Priority During the Transmission of a Message,” filed Aug. 11, 2004, which claims priority to French Application No. FR 0309918, filed Aug. 13, 2003, the entire contents of each of which are incorporated herein by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a method and a device for managing priority during the transmission of a message in an interconnections network.

2. Description of the Relevant Art

Interconnections networks ensure transmission of messages between various agents or entities of a communication network. A transmission may be made without performing message processing, or while performing message processing. In all cases one speaks of transmission of messages. Processing of a message is understood to mean for example an analysis of data contained in the message, or an appending of data to the message.

A message is, of course, a string of computer data, that is to say a string of bits or bytes. Each message includes a message header which chiefly includes the destination address of the message and the size of the message.

These interconnections networks are generally composed of two distinct parts which interact, namely a hardware part including physical links and a network controller, hard-wired or microprogrammed, which executes a low-level protocol, and a software part for effecting the interface with software functions of higher level.

An ideal interconnections network would certainly be a fully interconnected network, that is to say a network in which each pair of agents is coupled by a point-to-point link. However, this is unrealistic onwards of a few tens of agents. It is therefore necessary for the interconnections network to be able to cater for all the communications between agents with a limited number of links per agent.

Specialized agents exist for performing routing or transmission of messages flowing over the interconnections network.

These interconnections networks include transmission devices or routers (also known as “switches”), an organization of the network ensuring the link between the routers and the other agents, and a routing assembly, which caters for the flow of messages within the organization of the network.

A router is an active agent of the interconnections network which receives as input messages coming from one or more agents and which forwards or routes each of these messages respectively to their destination agent or to another router. This routing is performed by means of the address of the message destination agent, which is present in the header of the message to be routed.

The organization of a network constitutes the physical structure linking the various nodes or points of connections of an interconnections network.

The routing assembly manages the way in which a message is routed, or forwarded, from a source agent dispatching the message to a message destination agent through routers, along a routing path.

Any agent present in an interconnections network can dispatch and/or receive messages. The routing technique determines the way in which the messages are transmitted from the dispatching agent, which creates the message, to the destination agent. For a given interconnections network, there are various routing techniques, for which the main objectives are to reduce the end of message latency, or end of message forwarding time, for a message, from the dispatching agent to the destination agent, to increase the overall throughput and to improve the overall reliability of the network. The latency includes all the waiting times due to the way in which the messages propagate in the network and more particularly through the devices for transmitting messages in charge of routing the messages. The throughput is the quantity of computer data that a link of the network can transport per unit time, and can be measured locally over a link of the interconnections network or globally over the whole of the interconnections network. The reliability of a network is important, since the probability of errors grows rapidly with the number of nodes in an interconnections network.

A transmission agent includes at least one input including a means of storage organized as a message queue of the first in first out or FIFO type and at least one output including a message transmission means able to decide on the message to be transmitted. Only the first messages of the queues of the inputs are, of course, visible to the transmission agent.

Routing methods taking account of priorities between messages exist. The document present on the site brocade.com from the company Brocade, entitled “Providing reliable, high speed operations in large SANs” and the document present on the site cva.stanford.edu entitled “Virtual Channel, Flit Reservation Flow Control and Deadlock” talk of a procedure consisting in assigning priorities to messages during their creation, and in ordering the messages of a message queue of an input of a transmission agent according to their priority.

This modification of the order of the messages has a high hardware and software cost. Moreover, certain applications do not support the feature of messages not arriving in the order in which they were created, like certain real-time applications, for example display or audio or video retransmission applications.

SUMMARY OF THE INVENTION

In view of the foregoing, a system and method is herein described for performing a routing, which takes account of the priorities of the messages, at lesser cost, and which substantially improves the management of the throughput in the network.

Thus, there is proposed a method of managing priority during the transmission of a message, in an interconnections network including at least one transmission agent which includes at least one input and at least one output, each input including a means of storage of a queue of messages of type first in first out. A message priority is assigned during the creation of the message and a queue priority equal to the maximum of the priorities of the messages of the queue is assigned to at least one queue of messages of an input. A link priority is assigned to a link linking an output of a first transmission agent to an input of a second transmission agent, equal to the maximum of the priorities of the queues of messages of the inputs of said first agent including a first message destined for that output of said first agent which is coupled to said link, and the priority of the link is transmitted to that input of said second agent which is coupled to the link.

It is thus possible to take account of the high priority of a message, by assigning virtually, to the messages which precede it in its queue of messages, said message's priority which is higher than those of said messages which precede it. It is thus possible to manage priorities at low cost, and without having to modify the order of the messages of the queue, since certain applications do not support the receiving of messages in a modified order.

In an embodiment, the message, destined for said output, of a queue having the highest queue priority is furthermore transmitted on said output of the transmission agent.

In an advantageous mode of implementation, a resultant priority equal to the maximum of the priority of the link and of the priority of the queue of messages of the input to which the link is coupled is assigned, furthermore, to the queue of the messages of the input of said second agent on which said link arrives.

Furthermore, a link priority is furthermore assigned to a link coupled to an output of the second transmission agent, being a resultant priority, equal to the maximum of resultant priorities which result from the priorities of the queues of messages and the priorities of the respective links of said queues of messages of the inputs of said second agent including a first message destined for said output of said second agent.

Stated otherwise, a link priority is assigned to a link linking an output of a first transmission agent, which is equal to the maximum of the resultant priorities of the queues of messages of the inputs of said first agent including a first message destined for said output of the first agent which is coupled to said link. The resultant priority of a queue of an input of an agent being defined as the maximum of the priorities of the messages constituting the queue and of the priority of the link coupled to said queue of messages.

In an advantageous mode of implementation, the message, destined for an output of a queue having the highest resultant priority is furthermore transmitted on said output of the first transmission agent.

In an embodiment, the priority assigned to a message created by an agent is managed dynamically as a function of the throughput of response to the messages dispatched by said agent, so as to optimize the use of the communication throughput available.

According to the invention, there is also proposed a system for managing priority during the transmission of a message, in an interconnections network including at least one transmission agent which includes at least one input and at least one output, each input including a means of storage organized as a queue of messages of type first in first out. The message creation system agents include means for assigning a message priority transmitted with the message. Furthermore, at least one queue of messages of an input includes means for assigning a queue priority equal to the maximum of the priorities of the messages of the queue to the queue of messages. The system includes means for assigning a link priority to a link linking an output of a first transmission agent to an input of a second transmission agent, equal to the maximum of the priorities of the queues of messages of the inputs of said first agent including a first message destined for the output of said first agent which is coupled to said link, and means for transmitting the priority of the link to the input of said second agent which is coupled to the link.

In an embodiment, an output of said transmission agent includes means for transmitting the message, destined for said output, of a queue having the highest queue priority.

Furthermore, the system includes means for assigning a link priority to a link coupled to an output of the second agent, being a resultant priority, equal to the maximum of resultant priorities which result from the priorities of queues of messages and the priorities of the respective links of said queues of messages of the inputs of said second agent including a first message destined for said output of said second agent.

In an embodiment, an output of said agent includes means for transmitting the message, destined for said output, of a queue having the highest resultant priority.

In an advantageous embodiment, the system includes means for assigning to the queue of the messages of that input of said second agent on which said link arrives, a resultant priority equal to the maximum of the priority of the link and of the priority of the queue of messages of the input to which the link is coupled.

In an embodiment, the system includes means for transmitting a link priority being a resultant priority.

In a first example, the means of transmission include point-to-point linkups each associated with a link for transmitting messages.

In a second example, said means of transmission are able to transmit one of said priorities in a dedicated message.

BRIEF DESCRIPTION OF THE DRAWINGS

Other aims, characteristics and advantages of the invention will become apparent on reading the following description, given by way of non-limiting example, and offered with reference to the appended drawings in which:

FIG. 1 is a schematic diagram of a first embodiment of a system according to the invention;

FIG. 2 is a schematic diagram of a second embodiment of a system according to the invention; and

FIG. 3 illustrates the steps of a method according to the invention implemented by a device according to FIG. 2.

While the invention is susceptible to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that the drawing and detailed description thereto are not intended to limit the invention to the particular form disclosed, but on the contrary, the intention is to cover all modifications, equivalents and alternatives falling within the spirit and scope of the present invention as defined by the appended claims.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

In FIG. 1, an agent for transmitting messages 1 includes three inputs 2, 3 and 4 each respectively having a storage module organized as a queue of messages 5, 6 and 7. The number of inputs of the transmission agent 1 can obviously be arbitrary. The transmission agent 1 may either transmit a message as is, or perform a processing between their receipt and their dispatch.

The transmission agent 1 includes two outputs 8 and 9, each respectively including a transmission module 10, 11 able to choose the message to be transmitted on the respective output 8 and 9. The number of outputs of the agent 1 can, of course, be different. The outputs 8 and 9 of the transmission agent 1 are linked to all the queues of messages 5, 6, and 7. A transmission module 10 and 11 has access to the first message of a queue of messages 5, 6, and 7. The queues of messages 5, 6, and 7 respectively include modules 12, 13 and 14 for assigning a queue priority equal to the maximum of the priorities of the messages of the said queue 5, 6 and 7 to their respective queue of messages 5, 6 and 7. This may, for example, be performed by using a set of counters, each dedicated to a message priority level and to a queue of messages 5, 6 and 7, each indicating, at any instant, the number of messages of the corresponding priority level that are present in the queue 5, 6 and 7.

An example of the operation of such a device will now be described with reference to FIG. 1. Accordingly, represented here are for example message queues 5, 6 and 7 each including four messages, with three priority levels, with values 1, 2 and 3. These priorities have been assigned to the messages during their creation. The message queue 5 is at this instant composed of a first message 5 a of priority 1, of a second message 5 b of priority 1, of a third message 5 c of priority 1, and of a fourth message 5 d of priority 3. The message queue 6 is, for its part, composed of a first message 6 a of priority 2, of a second message 6 b of priority 1, of a third message 6 c of priority 1, and of a fourth message 6 d of priority 2. Finally, the message queue 7 is composed of a first message 7 a of priority 3, of a second message 7 b of priority 2, of a third message 7 c of priority 3, and of a fourth message 7 d of priority 1.

The module 12 assigns a queue priority to the message queue 5. This priority is equal to the maximum of the priorities of the messages of the queue, in this instance 3, which is the value of the priority of message 5 d. Likewise, the module 13 assigns, to the message queue 6, a queue priority of value 2, which is the value of the messages 6 a and 6 d. The module 14 assigns, to the message queue 7, a queue priority of value 3, which is the value of the messages 7 a and 7 c.

An example will be set forth in which the first message 5 a of queue 5 is destined for the output 8, the first message 6 a of queue 6 is destined for the output 8, and the first message 7 a of queue 7 is destined for the output 9.

The transmission module 10 of the output 8, compares the queue priorities of the message queues whose first message is destined for the output 8. In this instance, in this example, it compares only the queue priorities of queues 5 and 6. The priority of queue 5 having a value equal to 3, and the priority of queue 6 having a value equal to 2, the transmission module 10 will transmit the first message 5 a of queue 5 on the output 8.

For the outputs of transmission agents, the selection of the message to be transferred by priority will be performed in the manner just described.

If several queues destined for one and the same output of a transmission agent have one and the same queue priority, then the choice of the queue whose first message will be transmitted will be made by known methods, for example by chance draw.

This method therefore makes it possible, when a message of high priority arrives at a message queue of an input of a transmission agent, to simulate a temporary assignment of its priority to the messages of the queue which precede it, and as it were to push the messages ahead so as to force the passage of this high-priority message.

FIG. 2 is a schematic diagram of a second embodiment of a system with an extra priority level. In the example described, the references that are common with those of FIG. 1 retain identical numbering. Account is taken moreover of a transmission agent 15, linked to an input of the transmission agent 1, here the input 2, by a link 16. A transmission module 17 of an output 18, assigns a link priority to the link 16, equal to the maximum of the priorities of the message queues 19 and 20 of the inputs 21 and 22 of the agent 15 which include a first message destined for the output 18 coupled to the said link 16. The module 17 transmits the link priority to the message queue 5 of the input 2. The modules 12, 13 and 14 assign a queue priority to their respective queue 5, 6 and 7. Modules 23, 24 and 25 respectively assign a resultant priority to their queue 5, 6 and 7.

In the example illustrated by FIG. 2, the module 17 assigns a link priority equal to 3 to the link 16. This link priority has the value 3, since the queue priority of the queue 19 equals 3, the queue priority of queue 20 equals 2, and here, the first message of queue 19 and the first message of queue 20 are destined for the output 18. The link priority of the link 16 being equal to the maximum of these two values, it equals 3.

The modules 12, 13 and 14 respectively calculate queue priorities equal to 1, 2 and 3 for the queues 5, 6 and 7. The modules 23, 24 and 25 respectively assign resultant priorities to the queues 5, 6 and 7. In this example, the resultant priorities of queues 6 and 7 are their queue priorities, namely 2 and 3 respectively, and only the first message of queue 5 and the first message of queue 6 are destined for the output 8. The module 23 will take account of the link priority of the link 16, which equals 3, by assigning a resultant priority of 3, equal to the maximum of the queue priority of queue 5, which equals 1, and of the priority of link 16, which equals 3. The transmission module 10 then assigns the maximum priority, from the resultant priorities of the message queues 5 and 6, the first message of queue 7 not being destined for the output 8 associated with the module 10, and transmits the corresponding message on the output 8. This maximum priority, equal to 3, therefore takes account of the messages present in message queues of agents situated upstream. The transmission module 10 of the output 8 assigns to the link coupled to the output 8, equal to the maximum of the resultant priorities of the message queues 5 and 6 of the inputs 2 and 3 of the agent 1 which include a first message destined for the output 8.

Of course, everything described in this example applies to any number of agents.

Stated otherwise, a priority is propagated between an agent initiating a message and a destination agent for the message, so as to push the messages which precede a message having a higher priority.

Just as before, if for an output, several queues, whose first message is destined for the output, have one and the same resultant priority value, then a known method for deciding between them is used, for example chance draw.

The transmission of the various priorities used in the applications described above may be performed, for example, by means of extra point-to-point connections, dedicated to the transmission of these priorities, or by including these priorities in specific dedicated messages.

FIG. 3 describes the steps of a method according to the invention, implemented by a device according to FIG. 2.

Firstly, during the creation of a message by an agent of the interconnections network, this message is assigned a priority (step 30). In the examples cited, three levels of priority 1, 2 and 3 are taken. Of course, everything remains valid regardless of the number of priority levels, this number generally being less than or equal to 8.

For a transmission agent 1 belonging to the interconnections network, for the message queues 5, 6 and 7 of the inputs of the agent 1, a queue priority equal to the maximum of the priorities of the messages of the queue of each input is calculated (step 31).

For an input 2 of the agent 1, coupled to an output 18 of an upstream agent 15, a link priority is assigned, equal to the maximum of the queue priorities of the message queues 19 and 20, the first message of whose queue is destined for the said output 18 (step 32). If account has to be taken of a link priority of an agent upstream of the agent 15, it will be done as described hereinafter in the case of the agent 1.

A resultant priority is determined for a message queue 5, 6 and 7 of an input 2, 3 and 4, equal to the maximum of the queue priority of the queue in question and of the link priority of the link coupled to the input (step 33).

Finally, the first message of the queue, destined for the said output, the queue of which has the resultant priority equal to the maximum of the resultant priorities is transmitted for an output (step 34). If several queues have one and the same maximum resultant priority value, one queue out of these queues will be chosen by means of a known method, for example chance draw.

This method and system makes it possible to take account at low cost of the priority of a message in an interconnections circuit, by propagating the priorities through the agents present in the interconnections network.

This method and system furthermore makes it possible to optimize the use of the overall throughput of an interconnections network.

Further modifications and alternative embodiments of various aspects of the invention may be apparent to those skilled in the art in view of this description. Accordingly, this description is to be construed as illustrative only and is for the purpose of teaching those skilled in the art the general manner of carrying out the invention. It is to be understood that the forms of the invention shown and described herein are to be taken as the presently preferred embodiments. Elements and materials may be substituted for those illustrated and described herein, parts and processes may be reversed, and certain features of the invention may be utilized independently, all as would be apparent to one skilled in the art after having the benefit of this description to the invention. Changes may be made in the elements described herein without departing from the spirit and scope of the invention as described in the following claims. In addition, it is to be understood that features described herein independently may, in certain embodiments, be combined. 

What is claimed is:
 1. A system for managing priority during the transmission of a message in an interconnections network, the system comprising at least one transmission agent which comprises a plurality of inputs and at least one output, each input comprising a storage module to store a queue of messages of type first in first out, wherein: the at least one transmission agent comprises a message priority module to assign a message priority transmitted with the message, the message priority being unchanged during the transmission of the message; and at least one input comprises a queue priority module to assign a queue priority equal to the maximum of the priorities of the messages of the queue to the queue of messages of the input; the system comprising: a link priority module to assign a link priority to a link linking an output of a first transmission agent to an input of a second transmission agent, the link priority being equal to the maximum of the queue priorities of the queues of messages coupled to the inputs of said first transmission agent, the queues of messages coupled to the first transmission agent comprising a first message destined for the output of said first agent which is coupled to said link; a resultant priority module to assign a resultant priority to the queue of the second agent which is coupled to the link, the resultant priority being based upon the link priority of said link as assigned by the first transmission agent; and an additional priority input that is not coupled to a storage module, wherein the link priority is assigned the maximum of the queue priorities and the additional priority input.
 2. The system of claim 1, wherein respective orders of messages in each of the queues of messages are not modified by the first or second agents.
 3. The system of claim 1, comprising: a transmitting module to transmit a message from a first queue of messages of the second agent, destined to an output of the second agent, wherein the first queue of messages has a highest resultant priority with respect to other queues of messages of the second agent.
 4. The system of claim 3, wherein when multiple queues of messages of the second agent have a same highest resultant priority, the transmitting module selects one of the multiple queues of messages based at least in part on a chance draw and transmits a message from the selected queue.
 5. A system for managing priority during the transmission of a message in an interconnections network, the system comprising at least one transmission agent which comprises a plurality of inputs and at least one output, each input comprising a storage module to store a queue of messages of type first in first out, wherein: the at least one transmission agent comprises a message priority module to assign a message priority transmitted with the message, the message priority being unchanged during the transmission of the message; and at least one input comprises a queue priority module to assign a queue priority equal to the maximum of the priorities of the messages of the queue to the queue of messages; the system comprising: a link priority module to assign a link priority to a link linking an output of a first transmission agent to an input of a second transmission agent, the link priority being equal to the maximum of the queue priorities of the queues of messages coupled to the inputs of said first transmission agent, the queues of messages coupled to the first transmission agent comprising a first message destined for the output of said first agent which is coupled to said link; a resultant priority module to assign a resultant priority to the queue of the second agent which is coupled to the link, the resultant priority being based upon the link priority of said link as assigned by the first transmission agent; and an additional priority input that is not coupled to a storage module, wherein the link priority is assigned the maximum of the queue priorities and the additional priority input, and wherein the additional priority input is driven by a regulating mechanism that measures the time between transmission of a message and reception of a response.
 6. The system of claim 5, wherein respective orders of messages in each of the queues of messages are not modified by the first or second agents.
 7. The system of claim 5, comprising: a transmitting module to transmit a message from a first queue of messages of the second agent, destined to an output of the second agent, wherein the first queue of messages has a highest resultant priority with respect to other queues of messages of the second agent.
 8. The system of claim 7, wherein when multiple queues of messages of the second agent have a same highest resultant priority, the transmitting module selects one of the multiple queues of messages based at least in part on a chance draw and transmits a message from the selected queue.
 9. A system for managing priority during the transmission of a message in an interconnections network, the system comprising at least one transmission agent which comprises a plurality of inputs and at least one output, each input comprising a storage module to store a queue of messages of type first in first out, wherein: the at least one transmission agent comprises a message priority module to assign a message priority transmitted with the message, the message priority being unchanged during the transmission of the message; and at least one input comprises a queue priority module to assign a queue priority equal to the maximum of the priorities of the messages of the queue to the queue of messages; the system comprising: a link priority module to assign a link priority to a link linking an output of a first transmission agent to an input of a second transmission agent, the link priority being equal to the maximum of the queue priorities of the queues of messages coupled to the inputs of said first transmission agent, the queues of messages coupled to the first transmission agent comprising a first message destined for the output of said first agent which is coupled to said link; a resultant priority module to assign a resultant priority to the queue of the second agent which is coupled to the link, the resultant priority being based upon the link priority of said link as assigned by the first transmission agent; and an additional priority input that is not coupled to a storage module, wherein the link priority is assigned the maximum of the queue priorities and the additional priority input, and wherein the additional priority input is driven by a regulating mechanism that measures throughput on at least one link within the system.
 10. The system of claim 9, wherein respective orders of messages in each of the queues of messages are not modified by the first or second agents.
 11. The system of claim 9, comprising: a transmitting module to transmit a message from a first queue of messages of the second agent, destined to an output of the second agent, wherein the first queue of messages has a highest resultant priority with respect to other queues of messages of the second agent.
 12. The system of claim 11, wherein when multiple queues of messages of the second agent have a same highest resultant priority, the transmitting module selects one of the multiple queues of messages based at least in part on a chance draw and transmits a message from the selected queue. 